﻿import request from '/@/utils/request';
enum Api {
  AddDownhillData = '/api/downhillData/add',
  DeleteDownhillData = '/api/downhillData/delete',
  UpdateDownhillData = '/api/downhillData/update',
  PageDownhillData = '/api/downhillData/page',
  DetailDownhillData = '/api/downhillData/detail',
}

// 增加上下坡数据
export const addDownhillData = (params?: any) =>
	request({
		url: Api.AddDownhillData,
		method: 'post',
		data: params,
	});

// 删除上下坡数据
export const deleteDownhillData = (params?: any) => 
	request({
			url: Api.DeleteDownhillData,
			method: 'post',
			data: params,
		});

// 编辑上下坡数据
export const updateDownhillData = (params?: any) => 
	request({
			url: Api.UpdateDownhillData,
			method: 'post',
			data: params,
		});

// 分页查询上下坡数据
export const pageDownhillData = (params?: any) => 
	request({
			url: Api.PageDownhillData,
			method: 'post',
			data: params,
		});

// 详情上下坡数据
export const detailDownhillData = (id: any) => 
	request({
			url: Api.DetailDownhillData,
			method: 'get',
			data: { id },
		});


